package cn.xuguowen.user.designPatten.strategy.hsp.strategy;


/**
 * ClassName: WildDuck
 * Package: cn.xuguowen.user.designPatten.strategy.hsp.tradition
 * Description:
 * 野鸭子
 * @Author 徐国文
 * @Create 2023/4/28 12:12
 * @Version 1.0
 */
public class WildDuck extends Duck {

    public WildDuck() {
        flyBehavior = new GoodFlyBehavior();
        quakeBehavior = new BadQuakeBehavior();
    }

    @Override
    public void display() {
        System.out.println("这是野鸭子");
    }


}
